package com.woniuxy.lab.woniu_lab_boss.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniuxy.lab.woniu_lab_boss.common.Result;
import com.woniuxy.lab.woniu_lab_boss.controller.form.AddTeacherForm;
import com.woniuxy.lab.woniu_lab_boss.model.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.lab.woniu_lab_boss.service.dto.TeacherDto;

/**
 * <p>
 * 讲师表 服务类
 * </p>
 *
 * @author Silas
 * @since 2023-03-15
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 从token中获取teacherId
     * @return teacherId
     */
    Integer getTeacherId();

    IPage<TeacherDto> search(String condition, Integer page, Integer size);

    IPage<TeacherDto> findAll(Integer page, Integer size);

    void addTeacher(String username, String password);

    void modifyTeacher(Integer teacherId);

    void changePassword(Integer teacherId, String password,String newPass);

    void resetPassword(Integer teacherId);
}
